#ifndef MERGEDIALOG_H
#define MERGEDIALOG_H

#include <QDialog>

#include "limage.h"
#include "mainwindow.h"

QT_BEGIN_NAMESPACE
class QPushButton;
class QDoubleSpinBox;
class QComboBox;
class QCheckBox;
class QLineEdit;
QT_END_NAMESPACE

class MergeDialog : public QDialog
{
Q_OBJECT
public:
    explicit MergeDialog(QWidget *parent = 0);

    MainWindow *dad;

signals:
    void merge(LImage other, double coef);

public slots:
    void acceptMerge();
    void setFile();

private:
    QLineEdit *file;
    QDoubleSpinBox *spinCoef;
    QComboBox *comboQuality;
    QCheckBox *checkKeepRatio;
    QPushButton *resetButton;
    QPushButton *cancelButton;
    QPushButton *mergeButton;

    QString fileName;
};

#endif // MERGEDIALOG_H
